package entity;

import control.ForecastEngine;
import java.io.Serializable;
import java.util.Date;
import java.util.List;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Temporal;
import javax.validation.constraints.NotNull;

/**
 *
 * @author MONESI
 */
@Entity(name = "NOTIFICATION")

public class Notification implements Serializable  {

    
    @Id
    public int id;
    
    @Id
    private String destinatario;
    
    private int eventoAssociato; 
    
    public String contenuto;
    
    int letta;
    
    
    private static final long serialVersionUID = 1L;
    
    public void setEventoAssociato(int n){
        this.eventoAssociato = n;
    }
    
    public int getEventoAssociato(){
        return this.eventoAssociato;
    }
    
    public void setId(int i){
        this.id=i;
    }
    
    public int getId(){
        return id;
    }
    
        
    public void setLetta(int n){
        this.letta=n;
    }
    
    public int getLetta(){
        return this.letta;
    }
    public void setDestinatario(String mail){
        this.destinatario=mail;
    }
    public String getDestinatario(){
        return this.destinatario;
    }
    
    public void setContenuto(String contenuto){
        this.contenuto = contenuto;
    }
    
    public String getContenuto(){
        return this.contenuto;
    }
    
    
}

